package com.hopu.v1.pojo.classes.attendance;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 请假申请
 * @TableName t_onleave_request
 */
@TableName(value ="t_onleave_request")
@Data
public class OnleaveRequest implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 学生id
     */
    @TableField(value = "student_id")
    private Long studentId;

    /**
     * 请假日期
     */
    @TableField(value = "leave_day")
    private Integer leaveDay;

    /**
     * 请假开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 请假结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 请假原因
     */
    @TableField(value = "reason")
    private String reason;

    /**
     * 请假状态
     */
    @TableField(value = "status")
    private Object status;

    /**
     * 班主任审批结果
     */
    @TableField(value = "resultOne")
    private Object resultone;

    /**
     * 班主任审批意见
     */
    @TableField(value = "opinionOne")
    private String opinionone;

    /**
     * 教员审批结果
     */
    @TableField(value = "resultTwo")
    private Object resulttwo;

    /**
     * 教员审批意见
     */
    @TableField(value = "opinionTwo")
    private String opiniontwo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}